<template>
	<web-view :src="url" @message="getMessage" @onPostMessage="getPostMessage" :fullscreen='false'></web-view>
</template>
<script>
export default {
	data() {
		return {url: ''}
	},
	onLoad(e) {
		this.url = decodeURIComponent(e.url)
	},
	watch:{
		url(val){
			console.log('web-view',val)
		}
	},
	onBackPress(options){
		console.log('options:',options)
	},
	methods:{
		getMessage(e){
			console.log('msg:',e)
		},
		getPostMessage(e){
			console.log('msg:',e)
		},
		
	}
}
</script>